﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<AnalisisDeRiesgos.Models.User.ChangePasswordModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cambiar Password
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Cambiar password</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Datos</legend>
            
            <%: Html.HiddenFor(model => model.CI) %>               
            
            <div class="display-label">Carnet de indentidad: </div>
            <div class="display-field"><%: Model.CI %></div>
        
            <div class="display-label">Nombre(s): </div>
            <div class="display-field"><%: Model.FirstName %></div>
        
            <div class="display-label">Apellido Paterno: </div>
            <div class="display-field"><%: Model.LastName %></div>
        
            <div class="display-label">Apellido Materno: </div>
            <div class="display-field"><%: Model.SecondLastName %></div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Password) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(model => model.Password) %>
                <%: Html.ValidationMessageFor(model => model.Password) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RePassword) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(model => model.RePassword) %>
                <%: Html.ValidationMessageFor(model => model.RePassword) %>
            </div>
            
            <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la pagina principal", "Index", "Home") %>
    </div>

</asp:Content>

